Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<link href='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/codemirror.css' rel='stylesheet'> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/codemirror.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/htmlmixed/htmlmixed.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/javascript/javascript.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/xml/xml.js'></script> | |
</head> | |
<body> | |
<div style="background-color: #FFF; max-width: 800px; margin: auto; padding: 20px;"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Plain Text Editor</title> | |
<script | |
crossorigin | |
src="https://unpkg.com/react@18/umd/react.production.min.js" | |
></script> | |
<script | |
crossorigin | |
src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Complete macOS Setup | |
# From clean install to fully configured. | |
# Step 1: Init Environment | |
#Temporarily Disable sudo Password Timeout | |
#The sudo password timeout is re-enabled at the end of this script. ##+BEGIN_SRC sh sudo tee /etc/sudoers.d/timeout > /dev/null <<-EOF Defaults timestamp_timeout=-1 EOF ##+END_SRC | |
##+BEGIN_SRC sh sudo tee /etc/sudoers.d/installer > /dev/null <<-EOF %admin ALL=(ALL) NOPASSWD:SETENV: /usr/sbin/installer EOF ##+END_SRC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var App = Application("CotEditor") | |
App.includeStandardAdditions = true; | |
//var file = App.document.file()[0] | |
var file = App.documents[0].file(); | |
var sliced = file.toString().split("/"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>chessboardjs.com » Homepage</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="icon" href="/favicon.ico"> | |
<link rel="icon" href="/icon.svg" type="image/svg+xml"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>iD Test</title> | |
<link rel="stylesheet" href="dist/iD.css" /> | |
<link | |
rel="icon" | |
type="image/png" | |
href="data:image/png;base64,iVBORw0KGgo=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-09-14 09:24:46,327 - root:111(run) INFO: | |
----------------- | |
Starting Mu 1.0.0.beta.16 | |
2018-09-14 09:24:46,327 - root:112(run) INFO: uname_result(system='Windows', node='LLab09', release='10', version='10.0.17134', machine='AMD64', processor='Intel64 Family 6 Model 60 Stepping 3, GenuineIntel') | |
2018-09-14 09:24:46,327 - root:113(run) INFO: Python path: ['C:\\Program Files\\Mu\\pkgs', 'C:\\Program Files\\Mu\\Python\\python36.zip', 'C:\\Program Files\\Mu\\Python', 'C:\\Program Files\\Mu\\pkgs', 'C:\\Program Files\\Mu\\pkgs\\IPython\\extensions'] | |
2018-09-14 09:24:46,436 - mu.logic:542(__init__) INFO: Setting up editor. | |
2018-09-14 09:24:46,436 - mu.logic:556(__init__) INFO: Settings path: C:\Users\formii\AppData\Local\python\mu\settings.json | |
2018-09-14 09:24:46,436 - mu.logic:557(__init__) INFO: Session path: C:\Users\formii\AppData\Local\python\mu\session.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
defaults write com.apple.dt.Xcode DVTTextEditorTrimTrailingWhitespace -bool YES | |
defaults write com.apple.dt.Xcode DVTTextEditorTrimWhitespaceOnlyLines -bool YES | |
defaults write com.apple.dt.Xcode DVTTextIndentTabWidth -int 2 | |
defaults write com.apple.dt.Xcode DVTTextIndentWidth -int 2 | |
defaults write com.apple.dt.Xcode DVTTextPageGuideLocation -int 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A reference to document problems that I encountered related to apple development and how to fix them | |
## Git | |
### Define git credential helper of choice | |
`git config --global credential.helper osxkeychain` | |
### Add credentials to git credential helper | |
`git credential fill` | |
now you need to enter the following information, confirming each line of input with enter, when you are done leave one line empty and confirm again with enter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do shell script " | |
size=8 | |
diskName=RAMDisk | |
dir=/Volumes/$diskName | |
if ! test -e $dir ; then | |
diskutil erasevolume HFS+ $diskName `hdiutil attach -nomount ram://$(($size*1024*1024*2))` |
NewerOlder